package com.mandao.oneplat.boot.support;

/**
 * Created by sunson on 2017/3/23.
 */
public class OneSession {
    String sid;
    String ip;
    String deviceId;

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String toGenString() {
        StringBuilder sb = new StringBuilder();
        sb.append("#").append(ip);
        sb.append("#").append(deviceId);
        return sb.substring(1);
    }
}
